package com.qf.demo3.controller;

import com.qf.demo3.service.DataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private DataService dataService;

    @GetMapping("/test")
    public String test() throws InterruptedException {
//        dataService.saveData();
        dataService.readData();
        return "hello";
    }
}
